package com.xbb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

@MapperScan("com.xbb.mapper")
@SpringBootApplication //标识此类为springboot的启动类
public class App {
	public static void main(String[] args) {
		//启动
		SpringApplication.run(App.class, args);
	}
	
	@Bean
    public ThreadPoolTaskScheduler taskScheduler(){
        ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
        return taskScheduler;
    }
	
}
